﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Model
{
    public partial class Player
    {
        Timer signinTimer = null;
        private void StartSigninTimer()
        {
            if (signinTimer == null)
            {
                signinTimer = new Timer(TimeMethod, null, 0, 1000 * 60 * 60 * 24);
            }
        }

        private void TimeMethod(object obj)
        {
            if (!gameEntered) { return; }
            Signin();
            Thread.Sleep(100);
            ReceiveRegisterItem();
            Thread.Sleep(100);
            ReceiveRegisterItem(2);
            Thread.Sleep(100);
            ReceiveRegisterItem(7);
            Thread.Sleep(100);
            ReceiveRegisterItem(14);
            Thread.Sleep(100);
            ReceiveRegisterItem(21);
            Thread.Sleep(100);
            ReceiveRegisterItem(30);
            Thread.Sleep(100);
            //engine.SendData(DataPackager.GetJingPoData());
        }
    }
}
